Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / JManager Functions
Utility Functions /


JMAddToClassPath

Adds a directory, zip file, or Java archive (JAR) file to the class path.

OSStatus JMAddToClassPath (
                     JMSessionRef session,
                     const FSSpec* spec);
session
The current session.
spec
A pointer to a file system specification record.
function result
A result code; see "JManager Result Codes".
DISCUSSION
The JMAddToClassPath function adds an additional file to the Java class definition search path by prepending a Mac OS file system specification record (FSSpec) to the class path of the current session. You can add any number of files to the class path. The FSSpec value can indicate an uncompressed zip file or a directory. A directory is considered to be the root of a class hierarchy.

SEE ALSO
"Executing Java Applications".


Previous Book Contents Book Index Next

© Apple Computer, Inc.
10 DEC 1997